package 设计模式.工厂模式;

/**
 *
 * @author 孔令富  2021/10/22
 */
public class productFactoryTest {

    public static void main(String [] args ){
        Product mobile = ProductFactory.getBean("mobile");
        Product car = ProductFactory.getBean("car");
        mobile.show();
        car.show();
    }
}
